﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using DAL;
namespace BUS
{
    public class TacGia_BUS
    {
        TacGia_DAO ws;
        public TacGia_DTO[] LayDanhSachTacGia()
        {
            ws = new TacGia_DAO();
            TacGia_DTO[] tg = ws.DanhSachTacGia();
            return tg;
        }

        public TacGia_DTO DanhSachTacGia_TheoMaTacGia(String str_Ma)
        {
            ws = new TacGia_DAO();
            TacGia_DTO TacGia = ws.DanhSachTacGia_TheoMaTacGia(str_Ma);
            return TacGia;
        }

        public string MaTacGiaTang()
        {
            ws = new TacGia_DAO();
            return ws.MaTacGiaTang();
        }

        public int ThemTacGia(TacGia_DTO dto)
        {
            ws = new TacGia_DAO();
            return ws.ThemTacGia(dto);
        }

        public int XoaTacGia(TacGia_DTO dto)
        {
            ws = new TacGia_DAO();
            return ws.XoaTacGia(dto);
        }

        public int CapNhatTacGia(TacGia_DTO dto)
        {
            ws = new TacGia_DAO();
            return ws.CapNhatTacGia(dto);
        }
    }
}